//
//  Ray.cpp
//  raytrace
//
//  Created by M on 9/9/12.
//  Copyright 2012 __MyCompanyName__. All rights reserved.
//

#include "Ray.h"



Ray::Ray()
{}

Ray::Ray(vec3 pos, vec3 dir)
{
    
    _pos = pos;
    _dir = dir;
    //_ray = _pos - _dir;
    _ray = _dir - _pos;
    _ray = normalize(_ray);
}
